<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>爱心</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            position: absolute;
        }
        .h1{
            background-color: red;
            transform: rotate(45deg);
            top: 200px;
            left: 300px;
        }
        .h2{
            background-color: rgb(76, 0, 255);
            height: 100px;
            border-radius: 100px 100px 0 0;
            transform: rotate(-45deg);
            top: 145px;
            left: 194px;
        }
        .h3{
            background-color: rgb(0, 255, 60);
            height: 100px;
            border-radius: 100px 100px 0 0;
            transform: rotate(45deg);
            top: 145px;
            left: 406px;
        }
        .hh1{
            animation: heart 600ms infinite alternate;
        }
        @keyframes heart{
            0%{
                transform: scale(1);
            }
            100%{
                transform:scale(1.2)
            }
        }
    </style>
</head>
<body>
    <div class="hh1">
        <div class="h1"></div>
        <div class="h2"></div>
        <div class="h3"></div>
    </div>
    
</body>
</html>